package com.jarvis.hospital.common;

/**
 * Created by jarvis.liu on 9/13/2016.
 */
public class ResponseData<T> {

    private int resultCode;
    private int totalpage;
    private int totalcount;
    private int taskStatus;
    private String message;
    private T data;

    public int getResultCode() {
        return resultCode;
    }

    public void setResultCode(int resultCode) {
        this.resultCode = resultCode;
    }

    public int getTotalpage() {
        return totalpage;
    }

    public void setTotalpage(int totalpage) {
        this.totalpage = totalpage;
    }

    public int getTotalcount() {
        return totalcount;
    }

    public void setTotalcount(int totalcount) {
        this.totalcount = totalcount;
    }

    public String getMessage() {
        return message;
    }

    public void setMessage(String message) {
        this.message = message;
    }

    public T getData() {
        return data;
    }

    public void setData(T data) {
        this.data = data;
    }

    @Override
    public String toString() {
        return "ResponseData{" +
                "resultCode=" + resultCode +
                ", totalpage=" + totalpage +
                ", totalcount=" + totalcount +
                ", taskStatus=" + taskStatus +
                ", message='" + message + '\'' +
                ", data=" + data +
                '}';
    }

    public int getTaskStatus() {
        return taskStatus;
    }

    public void setTaskStatus(int taskStatus) {
        this.taskStatus = taskStatus;
    }
}
